Skip to content

add strong-error-handler template - #276

Closed
loay wants to merge 5 commits into
masterfrom
strongErrorHandler
Closed

add strong-error-handler template#276
loay wants to merge 5 commits into
masterfrom
strongErrorHandler

Conversation

@loay

@loay loay commented Apr 18, 2016

Copy link
Copy Markdown
Contributor

No description provided.

@bajtos

bajtos commented Apr 19, 2016

Copy link
Copy Markdown
Member

@bajtos bajtos assigned loay and unassigned bajtos Apr 19, 2016
@loay loay assigned bajtos and unassigned loay Apr 27, 2016
Comment thread server/server.js Outdated

// The ultimate error handler.
app.use(loopback.errorHandler());
app.use(loopback.strongErrorHandler());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is weird, apparently the person upgrading this project added JSON files but forgot to change server/server.js to match the new template. Let's revert all changes outside templates to keep this PR focused.

@bajtos

bajtos commented Apr 28, 2016

Copy link
Copy Markdown
Member

Looks better. As I said, we should load the new module directly and don't depend on loopback deps. In which case you need to modify https://github.com/strongloop/loopback-workspace/blob/bcb1dc85e3e3d2fcc986ff94e2f4684861c6f3f6/templates/projects/empty-server/data.js to include the new dependency.

@bajtos bajtos assigned loay and unassigned bajtos Apr 28, 2016
@loay loay closed this Jun 6, 2016
@loay loay removed the #review label Jun 6, 2016
@bajtos
bajtos deleted the strongErrorHandler branch September 10, 2020 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants